package com.wodsy.phoenix.dataobject.goodsc.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 商品标签对应数据库表的实体bean
 * TbGoodsTag entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tb_goods_tag", catalog = "goodsc")
public class GoodsTag implements java.io.Serializable {

	// Fields

	private static final long serialVersionUID = 1L;
	
	private Integer id;
	private String goodsTag;  //商品标签
//	private Integer goodsId;  //商品id
	private Date addTime;  //添加时间
	private Date updateTime;  //修改时间

	// Constructors

	/** default constructor */
	public GoodsTag() {
	}

	/** minimal constructor Integer goodsId,*/
	public GoodsTag(String goodsTag,  Date addTime) {
		this.goodsTag = goodsTag;
//		this.goodsId = goodsId;
		this.addTime = addTime;
	}

	/** full constructor */
	public GoodsTag(String goodsTag, Integer goodsId, Date addTime,
			Date updateTime) {
		this.goodsTag = goodsTag;
//		this.goodsId = goodsId;
		this.addTime = addTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "goods_tag", nullable = false)
	public String getGoodsTag() {
		return this.goodsTag;
	}

	public void setGoodsTag(String goodsTag) {
		this.goodsTag = goodsTag;
	}

//	@Column(name = "goods_id", nullable = false)
//	public Integer getGoodsId() {
//		return this.goodsId;
//	}
//
//	public void setGoodsId(Integer goodsId) {
//		this.goodsId = goodsId;
//	}

	@Column(name = "add_time", nullable = false, length = 19)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "update_time", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}